#include"string.h"

namespace bit
{
	void TestString1()
	{
		bit::string s1("hello world");

		for (int i = 0; i < s1.size(); i++)
		{
			cout << s1[i] << " ";
		}
		cout << endl;
		string::iterator it1 = s1.begin();
		while (it1 != s1.end())
		{
			cout << *it1 << " ";
			it1++;
		}
		cout << endl;
		for (auto e : s1)
		{
			cout << e << " ";
		}
		cout << endl;
	}
}


int main()
{
	bit::TestString1();
	return 0;
}